package buisness_service;

import java.util.Calendar;

public abstract class BuisnessEntity {
	private int id;
	private float montant;
	private Calendar date;
	private User user;

	private String nom;

	public BuisnessEntity() {
		Rapport.nbEntities++;
		this.id = Rapport.nbEntities;

	}

	public BuisnessEntity(float montant1, Calendar date1, User user) {
		Rapport.nbEntities++;
		this.id = Rapport.nbEntities;
		this.montant = montant1;
		this.date = date1;
		this.user = user;

	}

	public int getId() {
		return this.id;
	}

	public float getMontant() {
		return this.montant;
	}

	public Calendar getDate() {
		return this.date;
	}

	public void setId(int id1) {
		this.id = id1;
	}

	public void setMontant(float somme) {
		this.montant = somme;
	}

	public void setDate(Calendar date1) {
		this.date = date1;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

}
